<%@page import="util.Constants"%>
<%
    String projectID = (String) session.getAttribute("projectID");
    String name = (String) session.getAttribute("name");
    String description = (String) session.getAttribute("description");
    String pm = (String) session.getAttribute("pm");
    String Sdate = (String) session.getAttribute("Sdate");
    String Smonth = (String) session.getAttribute("Smonth");
    String Syear = (String) session.getAttribute("Syear");
    String Edate = (String) session.getAttribute("Edate");
    String Emonth = (String) session.getAttribute("Emonth");
    String Eyear = (String) session.getAttribute("Eyear");
    String status = (String) session.getAttribute("status");    
%>

<div id="inputform">
    <div class="row">
        <span class="label">ID</span>
        <input class="value" type="text" readonly="readonly" maxlength="4" name="projectID"
               value="<%=projectID%>"/>
    </div>
    <div class="row">
        <span class="label">Name</span>
        <input class="value" type="text" maxlength="20" name="name" value="<%=name%>"/>
    </div>
    <div class="row">
        <span class="label">Description</span>
        <input class="value" type="text" maxlength="120"  name="description"
               value="<%=description%>"/>
    </div>
    <div class="row">
        <span class="label">PM</span>
        <select name ="pm">
            <%
            controller.projectController.loadEmployeeData(out, pm);            
            %>
        </select>
    </div>
    <div class="row">
        <span class="label">Started Day</span>
        <select name="Sdate"> <%util.StringDate.insertDateBoxValue(out,Sdate);%></select>
        <select name="Smonth"><%util.StringDate.insertMonthBoxValue(out,Smonth);%></select>
        <select name="Syear"><% util.StringDate.insertYearBoxValue(out,Syear);%></select>
    </div>
     <div class="row">
         <span class="label">Ended Day</span>
        <select name="Edate"> <%util.StringDate.insertDateBoxValue(out,Edate);%></select>
        <select name="Emonth"><%util.StringDate.insertMonthBoxValue(out,Emonth);%></select>
        <select name="Eyear"><% util.StringDate.insertYearBoxValue(out,Eyear);%></select>
    </div>
    <div class="row">
        <span class="label">Status</span>
        <select name="status">
            <%
            controller.projectController.loadProjectStatusData(out, status);            
            %>
        </select>
    </div>    
    <div class="row">
        <a onclick="doAction(frmIndex, '<%=Constants.ADMIN_PAGE_NAME%>',
            '<%=Constants.PROJECT_MANAGEMENT_PAGE_NAME%>', '<%=Constants.PROJECT_LIST%>',
            '<%=Constants.EDIT%>')">Save</a>
    </div>
</div>